package cn.shop.gateway.model;

import java.util.List;

/**
 * @author : 李一涵
 * @date : Created in 2021-12-9 13:59
 * @description :
 */
public class MerchantGamePartition {

    private Long id;
    private String name;
    private String serverFolder;
    private List<GameNpc> npcs;
    private Boolean createScript;
    private String alias;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getServerFolder() {
        return serverFolder;
    }

    public void setServerFolder(String serverFolder) {
        this.serverFolder = serverFolder;
    }

    public List<GameNpc> getNpcs() {
        return npcs;
    }

    public void setNpcs(List<GameNpc> npcs) {
        this.npcs = npcs;
    }

    public Boolean getCreateScript() {
        return createScript;
    }

    public void setCreateScript(Boolean createScript) {
        this.createScript = createScript;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("MerchantGamePartition{");
        sb.append("id=").append(id);
        sb.append(", name='").append(name).append('\'');
        sb.append(", serverFolder='").append(serverFolder).append('\'');
        sb.append(", npcs=").append(npcs);
        sb.append(", createScript=").append(createScript);
        sb.append(", alias='").append(alias).append('\'');
        sb.append('}');
        return sb.toString();
    }

    public static class Table {
        public final static String NAME = "game_partition";
        public final static String CREATE_SQL = "CREATE TABLE " + NAME + "(" +
                Field.ID + " bigint KEY NOT NULL," +
                Field.NAME + " text," +
                Field.FOLDER + " text)";
    }

    public static class Field {
        public final static String ID = "id";
        public final static String NAME = "name";
        public final static String FOLDER = "serverFolder";
    }
}
